#!/usr/bin/env python
# -*- coding: utf-8 -*-

__author__ = 'gogo'

__version__ = '0.0.1'

with open('test_result/all_words_desc_test.txt') as f:
    for line in f:
        if line[0] != '-':
            part_line = line.split('->', 1)
            if len(part_line) == 2:
                print part_line[1]
                with open("long_desc/" + part_line[0].strip() + ".txt", "w") as text_file:
                    text_file.write(part_line[1])